from sanic import response
from . import app_sendsms
from .send_sms import SendSms

import asyncio


@app_sendsms.route("/send_sms",methods=["POST"])

async def send(request):

    info=request.form

    phone=info.get('phone')

    async with SendSms(phone) as c:

        info_=await c.send_sms()
        
    return response.json(info_)




    

        
       
        



